package oktx.sample.dubbo;

import oktx.JtaTransaction;
import oktx.sample.dubbo.model.User;

import java.util.List;

/**
 * Created by dave on 18-5-20 上午11:17.
 */
public interface UserApi {
    @JtaTransaction
    User addUser(User user);

    List<User> getUsers();

    @JtaTransaction
    void removeAllUsers();
}
